package cc.sbootd2.sbootd2web.service;

import org.apache.ibatis.annotations.Param;
import cc.sbootd2.sbootd2web.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    User getOneUser(int id);

    List<User> getUserList1();
    List<User> getUserList2(String userName);

    List<User> getUserList3(@Param(value = "userCode1") String userCode, @Param(value = "userName") String userName);

    List<User> getUserList4(Map<String, Object> map);

    List<User> getUserList5(User user);


    List<User> getUsersAndRoleNames();


    int save(User user);

    int update(User user);
    int update2(User user);

    int delete(int id);

    /**
     * 获得 所有的 用户信息以及其角色信息
     * @return
     */
    List<User> getAllUserList();
    List<User> getAllUserAndAddress();
    List<User> getUserList6(User user);
    List<User> getUserList7(User user);
    List<User> getUserList8(User user);

    List<User> getUsersByIds(Integer[] ids);

    List<User> getUsersByIdList(List<Integer> ids);
    List<User> getUsersByIdListAndGender(Map<String, Object> map);



    public User getUserByUserCode(String userCode);




}
